package com.feibo.controller;

import com.feibo.pojo.Resource;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * java类简单作用描述
 *
 * @ProjectName: feibo
 * @Package: com.feibo.controller
 * @ClassName:
 * @Description:
 * @Author: zhenglinyong
 * @CreateDate: 2018/12/18 10:42 PM
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 **/
@RestController
public class ResourceController {

    @Autowired
    private Resource resource;

    @RequestMapping("/getResource")
    public Resource getResource(){
        Resource res = new Resource();
        BeanUtils.copyProperties(resource,res);
        return res;
    }
}